Object.prototype.myFromEntries=function(arr){
    let obj={}
    for(let item of arr){
        obj[item[0]]=item[1]
    }
    return obj
}
let test=[['0','a'],['4','f']]
console.log(Object.myFromEntries(test));